Skip to content

✨ Add -DestinationOnly switch#50

Merged
JustinGrote merged 2 commits intomainfrom
JustinGrote/issue45
Jan 3, 2024
Merged

✨ Add -DestinationOnly switch#50
JustinGrote merged 2 commits intomainfrom
JustinGrote/issue45

Conversation

@JustinGrote
Copy link
Copy Markdown
Owner

Fixes #45

This pull request fixes an issue with the Install-ModuleFast function where it doesn't install modules in the specified destination if the same module is already installed in a different location on the system.

To address this issue, I have added a new parameter -DestinationOnly to the Install-ModuleFast function. When this parameter is specified, the function will only consider the specified destination and not any other paths currently in the PSModulePath. This is useful for scenarios where you want to ensure that the modules are installed in a specific location, such as in a CI environment.

I have also made changes to the Get-ModuleFastPlan and Find-LocalModule functions to support the new -DestinationOnly parameter.

… detects the same module installed some other place on the system

Fixes #45
@JustinGrote JustinGrote self-assigned this Jan 3, 2024
@JustinGrote JustinGrote merged commit 7836985 into main Jan 3, 2024
@JustinGrote JustinGrote deleted the JustinGrote/issue45 branch January 3, 2024 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Install-ModuleFast -Destination won't install modules if ModuleFast detects the same module installed some other place on the system

1 participant